gdk/wayland: Add GdkDisplay call to query available globals
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 13 Feb 2018 13:28:44 +0000 (14:28 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 13 Feb 2018 14:47:57 +0000 (15:47 +0100)
commit3b568fbe7701eeeab89cc995f2a616bb43d17985
treeb53f4ef965e60b1a7c1681fc7c8f44e04cdcfd34
parent365707e4eb56097496de07e0e160d7a81f242854
gdk/wayland: Add GdkDisplay call to query available globals

The internal known_globals hashtable is used to carry accounting for
interfaces that depend on others (as ordering is not guaranteed), extend
its usage so it also keeps track of unimplemented interfaces (here at
least).

The API call will then use this to allow querying the globals offered by
the compositor, it will be useful to determine whether we can use
text-input protocols or should fallback to other IMs.
docs/reference/gdk/gdk4-sections.txt
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkwaylanddisplay.h